﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleManger.aspx.cs" Inherits="Module_StaffManger_RoleManger" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="0px" EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Fit">
        <Toolbars >
            <ext:Toolbar runat="server">
                <Items >
                    <ext:Button ID="Button1" runat="server" Text="新增角色">
                    </ext:Button>
                     <ext:Button ID="BtnDel" runat="server" Text="删除角色" OnClick="BtnDel_Click" ConfirmText="是否确定删除选中的角色">
                    </ext:Button>
                     <ext:Button ID="Button3" runat="server" Text="查找角色" Hidden="true">
                    </ext:Button>
                    <ext:Button ID="BtnReflsh" runat="server" Text="刷新" OnClick="BtnReflsh_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="true" 
                EnableRowNumber="true" Title="Grid" ShowBorder="false"  AllowPaging="true" 
                ShowHeader="false"  OnRowCommand="Grid1_RowCommand" DataKeyNames="RoleID" 
                OnPageIndexChange="Grid1_PageIndexChange">
                <Columns>
                    <ext:LinkButtonField  Text="修改权限" ColumnID="UpdateRole" CommandName="UpdateRole" />
                    <ext:LinkButtonField  Text="修改角色信息" ColumnID="UpdateRoleInfo" CommandName="UpdateRoleInfo"/>
                    <ext:BoundField DataField="RoleName" HeaderText="角色名称" Width="100px"  />
                    <ext:BoundField DataField="RoleCreatTime" HeaderText="角色创建时间" Width="150px" />
                    <ext:BoundField DataField="Creater" HeaderText="角色角色创建人" Width="100px"  />
                    <ext:BoundField DataField="RoleRemark" HeaderText="备注" Width="150px" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>

    <ext:Window ID="Window1" runat="server"  OnClose="Window1_Close"
 Height="500px" IsModal="true" Popup="false" Title="Window" Width="800px" EnableIFrame="true" >
    </ext:Window>

    <ext:Window ID="Window2" runat="server"  Height="500px" IsModal="true" Popup="false"  Title="Window" Width="300px" EnableIFrame="true" IFrameUrl ="RoleTree.aspx">
    </ext:Window>



    </form>
</body>
</html>
